import { WeaLocaleProvider } from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;
export const fontFamilyOpts = () => {
  return [
    { key: 'inherit', selected: false, showname: getLabel(149, '默认') },
    { key: 'tahoma', selected: false, showname: 'Tahoma' },
    { key: 'helvetica', selected: false, showname: 'Helvetica' },
    { key: 'verdana', selected: false, showname: 'Verdana' },
    { key: 'georgia', selected: false, showname: 'Georgia' },
    { key: 'heiti', selected: false, showname: getLabel(16192, '黑体')},
    { key: 'kaiti', selected: false, showname: getLabel(16195, '楷体')},
    { key: 'songti', selected: false, showname: getLabel(16190, '宋体')},
  ]
};

export const fontSizeOpts = () => {
  return [
    { key: '12px', selected: false, showname: '12' },
    { key: '14px', selected: false, showname: '14' },
    { key: '16px', selected: false, showname: '16' },
    { key: '18px', selected: false, showname: '18' },
    { key: '20px', selected: false, showname: '20' },
    { key: '22px', selected: false, showname: '22' },
  ]
};

export const alignOpts = () => {
  return [
    { key: 'left', selected: false, showname: getLabel('511832','左对齐') },
    { key: 'center', selected: false, showname: getLabel('511820','居中') },
    { key: 'right', selected: false, showname: getLabel('511833','右对齐') },
  ]
};

export const visbleType = {
  Visble: '1',
  Hidden: '0'
};

export const visibleOpts = () => {
  return [
    { key: visbleType.Visble, selected: false, showname: getLabel('511834','显示') },
    { key: visbleType.Hidden, selected: false, showname: getLabel('511835','隐藏') }
  ]
};

export const shadowOpts = () => {
  return [
    { key: visbleType.Visble, selected: false, showname: getLabel('511836','开启') },
    { key: visbleType.Hidden, selected: false, showname: getLabel('511837','关闭') }
  ]
};

export const defaultCfg = {
  emptyImg: "",
  background: {
    backgroundColor: '#edf0f8'
  },
  submitBtn: {
    backgroundColor: '#0270c1',
    borderColor: '#0270c1',
    color: '#fff',
    fontFamily: 'inherit',
    fontSize: '14px',
    fontWeight: 'normal', // bold
    textAlign: 'left'
  }
};